package com.mf.enums;

import io.github.heollhai.common.result.ResultCode;
import io.github.heollhai.common.result.ResultCodeEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author: lmf
 * @Create: 2024/11/20 22:21
 * Description:
 */
@Getter // 提供获取属性值的getter方法
@AllArgsConstructor  //全参构造函数
public enum EnumBasicResultCode implements ResultCode {
    // 文件上传--------------------------------------
    UPLOAD_INDEX_UNMATCHED(4003, "上传的索引分片不一致！"),
    UPLOAD_FILE_FAILED(4003, "文件上传失败！"),
    UPLOAD_BUCKET_FAILED(4003, "创建文件桶失败！"),
    UPLOAD_INIT_SLICE_FAILED(4003, "初始化文件切片缓存失败！"),
    UPLOAD_UPDATEDB_FAILED(4003, "文件入库更新失败！"),
    UPLOAD_FILE_EXIST(4003, "文件已存在！"),
    UPLOAD_COMPOSE_FAILED(4003, "文件合并失败！"),
    // 文件不存在
    FILE_NOT_EXIST(4003, "文件不存在！"),
    FILE_DELETE_FAILED(4003, "文件删除失败！"),
    FILE_TOKEN_EXPIRE(4003, "文件访问时长超过限制！");

    final private Integer status;      // 业务状态码
    final private String message;    // 响应消息

    public Integer getCode() {
        return status;
    }
}
